home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Crossword / Source / PlainState.h < prev    next >
Text File  |  1995-06-12  |  736b  |  35 lines

  1. /*
  2.  
  3. File PlainState.h
  4.  
  5. The state object keeps track of information specific to the current state of the puzzle.  Different types of search need different types of information.  The basic state object is intended for plain depth first search.  It keeps track of squares, words, and a cache for letter counts.
  6.  
  7. */
  8.  
  9. #import <objc/Object.h>
  10. #import "FunctionCache.h"
  11.  
  12.  
  13. /* ————————————————————————————————————————————————————————————————————————————  */
  14.  
  15.  
  16. @interface PlainState:Object
  17. {
  18.     id                    puzzle;
  19.     id                    words;
  20.     id                    squares;
  21.     FunctionCache        * countCache;
  22. }
  23.  
  24. - squareClass;
  25. - wordClass;
  26. - getPuzzle;
  27. - getWords;
  28. - getSquares;
  29. - (FunctionCache *) getCountCache;
  30. - initPuzzle: (id) thePuzzle;
  31. - free;
  32. - makeSquares;
  33. - makeWords;
  34.  
  35. @end